<html>
<head>
<title>Contact Us</title>
</head>
<body>

<?php

//if "email" is filled out, send email
if (isset($_REQUEST['addressFrom']))
  {
  
	$addressFrom = $_REQUEST['addressFrom'];
	$subject = $_REQUEST['subject'];
	$message = $_REQUEST['message'];

	mail("team.retribution@gmail.com", $subject, $message, "From: $addressFrom");
	echo "<script type='text/javascript'>
		<!--
			window.location = 'http://csserver.ucd.ie/~s04bf1d5/retribution/mailConfirm.html'
		//-->
		</script>";
	
}else{

	echo "Error. Form not filled out. Please go back and retry";
}
?>

</body>
</html>
